<?php
class Indexmodel extends model{
    public function indexlist(){
        $sql = "select * from users";
        return $this->db->qurey($sql);
    }
    public function deletelist($id){
         $sql = "delete from users where id={$id}";
         return $this->db->exec($sql);
    }
}



?>